package com.yuw.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// RestContoller可以支持ajax的请求
@RestController
public class CommonControl {
    @RequestMapping("/hello")
    public String doHello() {
        return "Hello World!";
    }
}
